<%-- 
    Document   : HalamanUser
    Created on : Nov 15, 2012, 3:45:57 PM
    Author     : Ria
--%>

<%@page import="movie.Pelanggan"%>
<%@page import="java.util.ArrayList"%>
<jsp:useBean id="paket" scope="application" class="movie.Pelanggan"/>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%
            String nama_konsultan = session.getAttribute("email").toString();
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <title>Pay-for-Play</title>
        <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Abel|Satisfy' rel='stylesheet' type='text/css'>
        <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
        <style>

            table, td, th
            {
                border:1px solid green;
            }
            th
            table{font-size:100%;background:white}
            a{
                color:black;
                text-decoration:none;
                font:bold;
                font-family:'Hobo Std';
                color: #5E5E5E;}

            a:hover{color:#606060
                        text-decoration:none;
                    color: red;}

            td.menu{background:lightblue}

            table.menu
            {
                font-size:100%;
                position:absolute;
                visibility:hidden;
            }

        </style>
        <script>
            function showmenu(elmnt)
            {
                document.getElementById(elmnt).style.visibility="visible";
            }
            function hidemenu(elmnt)
            {
                document.getElementById(elmnt).style.visibility="hidden";
            }
        </script>
    </head>
    <body><div id="main">
            <center><img src="image/banner.jpg" width="100%" height="300"></center>

            <table width="100%">
                <tr bgcolor="#FF8080">
                    <td onmouseover="showmenu('home')" onmouseout="hidemenu('home')">
                        <a href="HalamanUtama.jsp">Home</a><br>
                        <table class="menu" id="home" width="120">
                            <tr><td class="menu"><a href="login.jsp">Login</a></td></tr>
                            <tr><td class="menu"><a href="Register.jsp">Register</a></td></tr>
                        </table>
                    </td>
                    <td onmouseover="showmenu('film')" onmouseout="hidemenu('film')">
                        <a href="Film.asp">Film</a><br>
                        <table class="menu" id="film" width="120">
                            <tr><td class="menu"><a href="commingSoon.jsp">Coming Soon</a></td></tr>
                            <tr><td class="menu"><a href="newRelease.jsp">New Release</a></td></tr>
                            <tr><td class="menu"><a href="hot.jsp">Hot!</a></td></tr>
                            <tr><td class="menu">
                                    <form method="get" action="cariServlet" id="search">
                                        <input name="search" type="text" size="40" placeholder="Search movie..." />
                                    </form>
                                </td></tr>
                        </table>
                    </td>
                    <td onmouseover="showmenu('about')" onmouseout="hidemenu('about')">
                        <a href="aboutUs.asp">Ours</a><br>
                        <table class="menu" id="about" width="120">
                            <tr><td class="menu"><a href="profile.jsp">Profile</a></td></tr>
                            <tr><td class="menu"><a href="team.jsp">The Team</a></td></tr>
                            <tr><td class="menu"><a href="history.jsp">History</a></td></tr>
                        </table>
                    </td>
                </tr>
            </table><br><br>

            <h2>Selamat Datang <%= nama_konsultan%></h2>
            <br>
            <br>
            <table>
                <%
                            ArrayList nonton = new ArrayList();
                            nonton = (ArrayList) request.getAttribute("pakets");
                            if (nonton != null && nonton.size() > 0) {
                %>
                <TR>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Nama:</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Email:</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Birthday:</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Bank:</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>Kuota:</B></FONT></TD>
                </TR>

                <%
                            for (int i = 0; i < nonton.size(); i++) {
                            Pelanggan penonton = (Pelanggan) nonton.get(i);

                %>
                <tr>
                    <td><%=penonton.fname%></td>
                    <td><%=penonton.email%></td>
                    <td><%=penonton.bday%></td>
                    <td><%=penonton.bank%></td>
                    <td><%=penonton.kuota%></td>
                </tr>
                <%}}%>
            </table>

            <center>
                <div id="footer">
                    <p> Copyright (c) 2012. All rights reserved.<br />Designed & Developed by Hardware Inc.</p>
                </div> </center>
        </div>
    </body>
</html>
